package com.example.login.api

import com.example.common.view.api.BaseApiService
import com.example.login.model.LoginEntity
import com.example.login.model.RegisterEntity
import com.example.login.view.UserResultData
import retrofit2.http.POST
import retrofit2.http.Query

interface UserApiService :BaseApiService{
    @POST("/api/user/login")
    suspend fun login(@Query("password")password:String,@Query("username")username:String):UserResultData<LoginEntity>
    @POST("/api/user/register")
    suspend fun register(@Query("password")password:String,@Query("username")username:String):UserResultData<RegisterEntity>
}